<? include "header.phtml"; ?>
  <h1><?=$this->escape($this->title);?></h1>
  <h2><?=$this->escape($this->description);?></h2>
  <a href="register">Register</a>
  <table border="1">
    <tr>
	  <th>ID</th>
	  <th>User Name</th>	  
	  <th>First Name</th>	  
	  <th>Last Name</th>	  
	  <th>Action</th>	  
	</tr>
  <? $datas = $this->datas;
     foreach($datas as $key =>$value){ ?>
    <tr>
	  <td><?=$datas[$key]['id']?></td>	
	  <td><?=$datas[$key]['user_name']?></td>
	  <td><?=$datas[$key]['first_name']?></td>	  
	  <td><?=$datas[$key]['last_name']?></td>	  
	  <td>
	    <a href="edit/id/<?=$datas[$key]['id']?>">Edit</a>
		|
	    <a href="del/id/<?=$datas[$key]['id']?>">Delete</a>		
	  </td>	  
	</tr> 
  <? } ?>
  </table>
  
<? include "footer.phtml"; ?>
